const express = require('express')
const router = express.Router()

// 导入控制层
const analysisController = require('../controllers/analysisController')
// 表单验证插件
const { body, query } = require("express-validator")

router.get('/score',analysisController.score_chart)
router.get('/attend',analysisController.attend_chart)
router.get('/housekeep',analysisController.housekeep_chart)
router.get('/progress',analysisController.progress_chart)
router.get('/classRank',analysisController.classRank_chart)
router.get('/attendRank',analysisController.attendRank_chart)
router.get('/housekeepRank',analysisController.housekeepRank_chart)
router.get('/homeworkRank',analysisController.homeworkRank_chart)
router.get('/allScore',analysisController.allScore_chart)
router.get('/average',analysisController.average_chart)
router.get('/student',analysisController.student_chart)
router.get('/attenddetail',analysisController.attenddetail_chart)
router.get('/workcom',analysisController.workcom_chart)
router.get('/workcomNum',analysisController.workcom_number)

module.exports = router